package com.richest.api.controller.form;

import java.util.Date;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModelProperty;

/**
 * 
 * @author zhaohongchao 2019年3月22日 下午1:49:50
 * @email 70375739@qq.com
 */
public class UnifiedOrderForm {
	@ApiModelProperty(value = "商品简单描述，该字段请按照规范传递，例：腾讯充值中心-QQ会员充值")
	@NotBlank(message = "不能为空")
	String body;

	@ApiModelProperty(value = "公众号用户openid")
	@NotBlank(message = "不能为空")
	String open_id;

	@ApiModelProperty(value = "支付金额，元为单位")
	String total_fee;

	@ApiModelProperty(value = "商户系统内部订单号")
	@NotBlank(message = "不能为空")
	String out_trade_no;

	@ApiModelProperty(value = "客户端ip，前台不用传")
	String spbill_create_ip;

	@ApiModelProperty(value = "订单生成时间，格式为yyyyMMddHHmmss")
	Date time_start;

	@ApiModelProperty(value = "订单失效时间，格式为yyyyMMddHHmmss")
	Date time_expire;

	@ApiModelProperty(value = "商户数据包，商户id")
	@NotBlank(message = "不能为空，")
	String attach;

	@ApiModelProperty(value = "商户id")
	@NotBlank(message = "不能为空")
	String admart_id;

	@ApiModelProperty(value = "订单优惠标记")
	String goods_tag;

	@ApiModelProperty(value = "商品详情")
	String detail;

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public String getOpen_id() {
		return open_id;
	}

	public void setOpen_id(String open_id) {
		this.open_id = open_id;
	}

	public String getTotal_fee() {
		return total_fee;
	}

	public void setTotal_fee(String total_fee) {
		this.total_fee = total_fee;
	}

	public String getOut_trade_no() {
		return out_trade_no;
	}

	public void setOut_trade_no(String out_trade_no) {
		this.out_trade_no = out_trade_no;
	}

	public String getSpbill_create_ip() {
		return spbill_create_ip;
	}

	public void setSpbill_create_ip(String spbill_create_ip) {
		this.spbill_create_ip = spbill_create_ip;
	}

	public Date getTime_start() {
		return time_start;
	}

	public void setTime_start(Date time_start) {
		this.time_start = time_start;
	}

	public Date getTime_expire() {
		return time_expire;
	}

	public void setTime_expire(Date time_expire) {
		this.time_expire = time_expire;
	}

	public String getAttach() {
		return attach;
	}

	public void setAttach(String attach) {
		this.attach = attach;
	}

	public String getAdmart_id() {
		return admart_id;
	}

	public void setAdmart_id(String admart_id) {
		this.admart_id = admart_id;
	}

	public String getGoods_tag() {
		return goods_tag;
	}

	public void setGoods_tag(String goods_tag) {
		this.goods_tag = goods_tag;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

}
